import request from "../utils/request";
export function updateUser(params) {
    return request({
        url: '/api/user/update',
        method: 'put',
        data: params
    })
}
export function getUser() {
    return request({
        url: '/api/user/all',
        method: 'get',
    })
}
export function deleteUser(params) {
    return request({
        url: '/api/user/delete',
        method: 'delete',
        data: params
    })
}
export function getOneUser(userName) {
    return request({
        url: '/api/user/one/'+userName,
        method: 'get',
    })
}
export function updateOnePassword(params) {
    return request({
        url: '/api/user/password',
        method: 'put',
        data: params
    })
}
